package com.wx.mall.operate.dto;

import com.wx.mall.common.validator.FlagValidator;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

@Data
public class DiscountDto {
    @ApiModelProperty("当前页")
    @NotNull(message = "不能为空")
    private Integer pageNum;

    @ApiModelProperty("页数")
    @NotNull(message = "不能为空")
    private Integer pageSize;

    @ApiModelProperty(value = "优惠券名称")
    private String disName;

    @FlagValidator(value = {"0","1","2","3","4"},message = "状态不正确")
    @ApiModelProperty(value = "优惠券类型:0为注册赠券,1为全场赠券,2为会员赠券,3购物赠券,4无反应")
    private Integer disType;

    @ApiModelProperty("排序方式:0为时间,1为状态")
    @FlagValidator(value = {"0","1"},message = "状态不正确")
    private int sort;

}
